/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.student;

import za.ac.cput.assignment2.LoanInterest;

/**
 *
 * @author yandiswa
 */
public abstract class Student implements LoanInterest{
    
    private String name;
    private String studNum;
    private double loanAmount;
    public Student(){
        
    }
    
    public Student(String nm, String stud,double loan){
        
        name = nm;
        studNum = stud;
        loanAmount = loan;
    
    }
    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the studNum
     */
    public String getStudNum() {
        return studNum;
    }

    /**
     * @param studNum the studNum to set
     */
    public void setStudNum(String studNum) {
        this.studNum = studNum;
    }

    /**
     * @return the loanAmount
     */
    public double getLoanAmount() {
        return loanAmount;
    }

    /**
     * @param loanAmount the loanAmount to set
     */
    public void setLoanAmount(double loanAmount) {
        this.loanAmount = loanAmount;
    }
    public abstract double interest();
}
